﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<span id="formlist_headertitle">小组列表</span>
<table id="formlist_content" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <th>
            组名
        </th>
        <th>
            创建时间
        </th>
        <th>
            成员
        </th>
        <th>
            描述
        </th>
    </tr>
    <%
        System.Data.DataTable dt = ViewData["dt"] as System.Data.DataTable;
        if (dt == null || dt.Rows.Count == 0)
        {%>
    <tr>
        <td colspan="0" style="text-align: center;">
            当前无数据！
        </td>
    </tr>
    <% }
        else
        {
            int count = dt.Rows.Count;
            for (int i = 0; i < count; i++)
            {
    %>
    <tr>
        <td>
            <%=dt.Rows[i]["名称"]%>
        </td>
        <td>
            <%=DateTime.Parse(dt.Rows[i]["创建时间"].ToString()).ToString("yyyy-MM-dd HH:mm")%>
        </td>
        <td>
            <%=dt.Rows[i]["成员"]%>
        </td>
        <td>
            <%=dt.Rows[i]["描述"]%>
        </td>
    </tr>
    <%
        }
        }%>
</table>
